﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<MShop.Core.Domain.Trade>" %>

<asp:Content ID="Contenft1" ContentPlaceHolderID="cphMeta" runat="server">
    <script type="text/javascript">
        history.go(1);
    </script>
    <script type="text/javascript">
        var go2AliUrl = function () {
            window.open('/pay/alipay?tid=<%=Model.TradeId %>','','');
        }
        var go2TenPayUrl = function () {
            window.open('/pay/TenPay?tid=<%=Model.TradeId %>', '', '');
        }
        var go2ChinaBank = function () {
            window.open('/pay/ChinaBanksend?tid=<%=Model.TradeId %>', '', '');
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <% using (Html.BeginForm())
       { %>
    <div id="content" class="ovfl">
        <div>
            <img src='/images/step3.gif' />
        </div>
        <div class="cart">
        <h2>恭喜，订单提交成功了!</h2>
            <p>
               
                    <img src="/images/visa.gif" align="left" />
                    订单号<span class="point"><%=Model.TradeId %></span>, 您需要支付<span class="price">¥<%=Model.TotalSum %></span>
                    您选定的配送方式为:<span class="point"><%=Model.Distribution.Name %></span>，您选定的支付方式为:<span class="point"><%=Model.Pay.PayName %></span>
                    您选择 <span class="point"><%=Model.Pay.PayName %></span> 在线支付，按“立即支付”完成支付。在确认网上支付成功后，方可为您发货。 感谢您的购物。祝您购物愉快！
                   <br />如有疑问请您联系客服人员 服务热线：020-87015149  

                
            </p>
            <div>
                <% if (ViewData["paytype"] is AliPayasSurePayModel)
                   {  %>
                <input type="button" value="立即支付" class="btn_login" onclick="go2AliUrl();" />
                <%}
                   else if (ViewData["paytype"] is TenPayModel)
                   { %>
                      <input type="button" value="立即支付" class="btn_login" onclick="go2TenPayUrl();" />
                <%} 
                  else if (ViewData["paytype"] is ChinaBankPayModel)
                   { %>
                      <input type="button" value="立即支付" class="btn_login" onclick="go2ChinaBank();" />
                <%} %>
            </div>
        </div>
    </div>  
    <%} %>
</asp:Content>
